{
  "properties" : { },
  "id" : "542354f329394813a62e4f639a63f5b0",
  "script" : null,
  "groupId" : "c610d2c8eca14986ae1a47f44aeec898",
  "name" : "新增巡检项(后台添加)",
  "createTime" : 1727071117268,
  "updateTime" : 1726730334233,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "save",
  "method" : "GET",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": \"ok\"\n}",
  "description" : null,
  "requestBodyDefinition" : null,
  "responseBodyDefinition" : null
}
================================


code="CONFIG_FILE"

item={
    "id":IdUtil.hashId(code),
    "name":"配置文件是否采集",
    "code":code,
    "description":"检查设备的配置文件是否已经采集"
}

try {
    db.table("audit_item")
    .insert(item)
} catch(e) {
    return e.getMessage()
}

return "ok"